package org.framework.define.bean.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the tbl_user_deal_record database table.
 * 
 */
@Entity
@Table(name="tbl_user_deal_record")
public class TblUserDealRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="record_id", unique=true, nullable=false, length=50)
	private String recordId;

	@Column(name="after_balance", nullable=false, precision=15, scale=2)
	private BigDecimal afterBalance;

	@Column(name="after_coins", nullable=false, precision=15, scale=2)
	private BigDecimal afterCoins;

	@Column(name="after_credit", nullable=false)
	private int afterCredit;

	@Column(name="after_security_deposit", nullable=false, precision=15, scale=2)
	private BigDecimal afterSecurityDeposit;

	@Column(name="amount_balance", nullable=false, precision=15, scale=2)
	private BigDecimal amountBalance;

	@Column(name="amount_coins", nullable=false, precision=15, scale=2)
	private BigDecimal amountCoins;

	@Column(name="amount_credit", nullable=false)
	private int amountCredit;

	@Column(name="amount_security_deposit", nullable=false, precision=15, scale=2)
	private BigDecimal amountSecurityDeposit;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time", nullable=false)
	private Date createTime;

	@Column(name="oper_type", nullable=false, length=10)
	private String operType;

	@Column(nullable=false, length=50)
	private String remark;

	@Column(nullable=false, length=5)
	private String state;

	@Column(name="user_id", nullable=false, length=50)
	private String userId;

	public TblUserDealRecord() {
	}

	public String getRecordId() {
		return this.recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	public BigDecimal getAfterBalance() {
		return this.afterBalance;
	}

	public void setAfterBalance(BigDecimal afterBalance) {
		this.afterBalance = afterBalance;
	}

	public BigDecimal getAfterCoins() {
		return this.afterCoins;
	}

	public void setAfterCoins(BigDecimal afterCoins) {
		this.afterCoins = afterCoins;
	}

	public int getAfterCredit() {
		return this.afterCredit;
	}

	public void setAfterCredit(int afterCredit) {
		this.afterCredit = afterCredit;
	}

	public BigDecimal getAfterSecurityDeposit() {
		return this.afterSecurityDeposit;
	}

	public void setAfterSecurityDeposit(BigDecimal afterSecurityDeposit) {
		this.afterSecurityDeposit = afterSecurityDeposit;
	}

	public BigDecimal getAmountBalance() {
		return this.amountBalance;
	}

	public void setAmountBalance(BigDecimal amountBalance) {
		this.amountBalance = amountBalance;
	}

	public BigDecimal getAmountCoins() {
		return this.amountCoins;
	}

	public void setAmountCoins(BigDecimal amountCoins) {
		this.amountCoins = amountCoins;
	}

	public int getAmountCredit() {
		return this.amountCredit;
	}

	public void setAmountCredit(int amountCredit) {
		this.amountCredit = amountCredit;
	}

	public BigDecimal getAmountSecurityDeposit() {
		return this.amountSecurityDeposit;
	}

	public void setAmountSecurityDeposit(BigDecimal amountSecurityDeposit) {
		this.amountSecurityDeposit = amountSecurityDeposit;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getOperType() {
		return this.operType;
	}

	public void setOperType(String operType) {
		this.operType = operType;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}